#include<bits/stdc++.h>
using namespace std;
#define int long long

int s[5];
int cnt[85];

signed main() {
	for (int i = 1; i <= 3; i++)
		cin >> s[i];
	for (int i = 1; i <= s[1]; i++)
		for (int j = 1; j <= s[2]; j++)
			for (int k = 1; k <= s[3]; k++)
				cnt[i + j + k]++;
	cout << max_element(cnt + 3, cnt + 81) - cnt;
	return 0;
}
